<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <script>
        for(var x=1;x<35;x++){
            for(var y =1 ; y<35 ;y++){
                if(2*x+4*y===94 && x+y===35){
                    document.write("鸡有"+x+"只","兔子有"+y+"只");
                }
            }
        }
    </script>
</body>
</html>